﻿function LoadJPlayer(mp4File, posterFile, playerWidth, playerHeight, styleClass) {

    $("#jquery_jplayer_1").jPlayer({
        ready: function () {
            $(this).jPlayer("setMedia", {
                m4v: mp4File,
                poster: posterFile
            });
        },
        swfPath: "http://cdn.pbdesk.com/plugins/jplayer/js/Jplayer.swf",
        supplied: "m4v",
        size: {
            width: playerWidth,
            height: playerHeight,
            cssClass: "jp-video-360p"
        }
    });
}